//用户个人信息界面的请求
import requset from '../../utils/requset';
export default {
	//获取用户的详细信息
	getUserDetail: (uid) => {
		return requset.get(`/user/detail?uid=${uid}&timestamp=${new Date().getTime()}`);
	},
	//获取用户绑定的信息,暂时没啥用
	getUserMessage: (uid) => {
		return requset({
			url: `/user/binding?uid=${uid}&cookie=${localStorage.getItem('cookie')}`
		});
	},
	//获取账号信息,暂时也没啥用
	getAccount: () => {
		// return requset.get(`/user/account`)
		return requset({
			url: `/user/account?cookie=${localStorage.getItem('cookie')}`
		});
	},
	//获取歌单信息--暂时没用
	getMusicMessage: () => {
		// return requset.get(`/user/account`)
		return requset({
			url: `/user/subcount?cookie=${localStorage.getItem('cookie')}`
		});
	},
	//获取用户歌单
	getGedan: (uid) => {
		return requset.get(`/user/playlist?uid=${uid}`);
	},
	//修改用户信息
	updateMessage({ gender, signature, city, nickname, birthday, province }) {
		return requset.get(
			`/user/update?gender=${gender}&signature=${signature}&city=${city}&nickname=${nickname}&birthday=${birthday}&province=${province}`
		);
	}
	//
};
